using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Net.Mail;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;

public partial class public_html_Contact : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }

    protected void SendMail(object sender, EventArgs e)
    {
        string Mailcontent = txtText.Text.ToString() + " / Fra: " + txtNavn.Text.ToString();
        MailMessage MyMail = new MailMessage();
        MyMail.From = new MailAddress(txtMail.Text.ToString());
        MyMail.To.Add(new MailAddress("soeborg@reviewer.dk"));
        MyMail.Subject = ddlAng.SelectedItem.Text.ToString();
        MyMail.IsBodyHtml = false;
        MyMail.Body = Mailcontent;
        SmtpClient client = new SmtpClient();
        client.Send(MyMail);

        lblMessage.Text = "<b>Tak, vi har nu modtaget din mail og vil svare den hurtigst muligt</b>";

    }
}
